package com.trinhrae.shooting.util;

import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @Author: TrinhRae
 * @Package: com.trinhrae.shooting.util
 * @Project: shooting
 * @Date: 2025/9/2 17:07
 */
@Component
public class VerifyUtil {
    public String generateCode() {
        String uuid = UUID.randomUUID().toString();
        int length = uuid.length();
        return uuid.substring(length - 4).toUpperCase();
    }
}
